'use strict';

function choose_multiples_of_three(collection) {

  //在这里写入代码
  function Three (value)
  {
    if(value===0)
    {
      return true;
    }
    if(value%3===0)
    return value; 
  }
  let arr=collection.filter(Three);
  return arr;
}

module.exports = choose_multiples_of_three;
